package JtableSort;
import java.awt.BorderLayout;
import java.awt.Frame;


@SuppressWarnings("serial")
public class TableFrame extends Frame {
	public TableFrame(){
        setLayout(new BorderLayout());  
        MiniTable table=new MiniTable();
        table.setUI(new DragDropRowTableUI());  
        table.addColumn("index");
        table.addColumn("content");
        table.setColumnClass(0, true);
        table.setColumnClass(1, true);
        for(int row = 0 ; row < 10; row++){
        	table.setRowCount(row+1);
        	table.setValueAt(row+1, row, 0);
        	table.setValueAt("content "+(row+1), row, 1);
        }
        add(table,BorderLayout.CENTER);  
        this.setSize(600,500);
        setVisible(true);
    }
	
    public static void main(String[] args) {
        new TableFrame();
    }
}